package com.java.actual.cleanMine;



import javax.swing.JButton;
import java.awt.*;

public class MineButton extends JButton {
	private int row;
	private int col;
	private boolean cleared=false;
	private int countOfSurroundMines;//周围地雷数，如果本按钮是雷，则为-1；
	
	public MineButton(int row,int col){
		this.row=row;
		this.col=col;
		this.setMargin(new Insets(0,0,0,0));
	}

	public int getCol() {
		return col;
	}

	public int getRow() {
		return row;
	}

	public boolean isCleared() {
		return cleared;
	}

	public void setCleared(boolean cleared) {
		this.cleared = cleared;
	}

	public int getCountOfSurroundMines() {
		return countOfSurroundMines;
	}

	public void setCountOfSurroundMines(int countOfSurroundMines) {
		this.countOfSurroundMines = countOfSurroundMines;
	}
	
	
}

